package com.huida.app.enums;

/**
 * @Description: 异常枚举类
 * @Author: Wangzz
 * @Version: 1.0.0
 * @CreateDate: Created in 2021/10/31 22:35
 * @UpdateDate: [dateFormat:YYYY-MM-DD][modifier][description]
 */
public enum CustomExceptionType {
    USER_INPUT_ERROR(400,"您输入的数据格式错误或您没有权限访问资源！"),
    SYSTEM_ERROR (500,"系统出现异常，请您稍后再试或联系管理员！");

    private String description;//异常类型中文描述

    private int code; //code

    CustomExceptionType(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public int getCode() {
        return code;
    }
}
